/*
 * Buddy.cpp
 *
 *  Created on: Mar 2, 2011
 *      Author: jelle
 */

#include "Buddy.h"

Buddy::Buddy() {
	status = EMPTY;
	area = 0;
}

Buddy::~Buddy() {
	delete area;
}

void Buddy::setArea(Area* area){
	this->area = area;
	status = FULL;
}

void Buddy::removeArea(){
	area = 0;
	status = EMPTY;
}

Area* Buddy::getArea(){
	return area;
}

BuddyStatus Buddy::getStatus(){
	return status;
}

void Buddy::split(){
	status = SPLIT;
}

void Buddy::join(){
	status = EMPTY;
}
